//
//  Catalogue.m
//  AOEProject
//
//  Created by techplus on 9/21/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "Catalogue.h"
#import "CatalogueElement.h"
#import "AOE_XML_Parser.h"

@implementation Catalogue
@synthesize catalogueElements;
@synthesize atrName;
@synthesize TAG_CATALOG_INDEX;

-(id)initWithCatalogIndex:(NSInteger *)cIndex{
    self = [super init];
    if(self)
    {
        self.TAG_CATALOG_INDEX = cIndex;
        //[self getAtrs];
    }
    return self;
}

-(void)getAtrs{
    
    //GET SAMPLE DATA
    //atrName = [[NSString alloc]initWithFormat:@"C%d",TAG_CATALOG_INDEX];
    
}

-(void)getCatalogueElements{
    
    self.catalogueElements = [[NSMutableArray alloc]initWithArray:[[AOE_XML_Parser getInstance]getCatalogElementList:TAG_CATALOG_INDEX]];
}

-(void)dealloc{
    [catalogueElements release];
    [atrName release];
    [super dealloc];
}

@end
